import Login from './views/Login.vue'
import Register from './views/Register.vue'
import NotFound from './views/404.vue'
import WillFinish from './views/WillFinish.vue'
import Home from './views/Home.vue'
import echarts from './views/charts/echarts.vue'

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/register',
        component: Register,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/willFinish',
        component: WillFinish,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: '首页',
        iconCls: 'fa fa-home',
        leaf: true,//只有一个节点
        children: [
            { path: '/', component: echarts, name: '首页' }
        ]
    }
    ,{
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
    // {
    //     path: '/',
    //     component: Home,
    //     name: '组织机构管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/department', component: Department, name: '部门管理' },
    //         { path: '/employee', component: Department, name: '员工管理' },
    //         { path: '/shop', component: Shop, name: '店铺管理' },
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: '寻主消息',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/toAudit', component: SearchMasterMsgToAudit, name: '待审核' },
    //         { path: '/toHandle', component: SearchMasterMsgTohandle, name: '待处理'},
    //         { path: '/pool', component: SearchMasterMsgPool, name: '寻主池' },
    //         { path: '/finish', component: SearchMasterMsgFinish, name: '已经完成' }
    //     ]
    // }
    // ,
    // {
    //     path: '/',
    //     component: Home,
    //     name: '宠物管理',
    //     iconCls: 'fa fa-id-card-o',
    //     children: [
    //         { path: '/petType', component: Pet, name: '宠物类型' },
    //         { path: '/pet', component: Pet, name: '宠物管理' },
    //         { path: '/petOnsaleAuditLog', component: Pet, name: '宠物上架审核日志' },
    //     ]
    // }
    // ,
    // {
    //     path: '/',
    //     component: Home,
    //     name: '订单管理',
    //     iconCls: 'el-icon-message',//图标样式class
    //     children: [
    //         { path: '/acquisitionOrder', component: AcquisitionOrder, name: '收购订单' },
    //         { path: '/adoptOrder', component: AdoptOrder, name: '领养订单'},
    //         { path: '/productOrder', component: AdoptOrder, name: '服务订单' },
    //         { path: '/goodsOrder', component: AdoptOrder, name: '商品订单' },
    //         { path: '/rechargeOrder', component: AdoptOrder, name: '充值订单' }
    //     ]
    // },
    // {
    //     path: '/',
    //     component: Home,
    //     name: 'Charts',
    //     iconCls: 'fa fa-bar-chart',
    //     children: [
    //         { path: '/echarts', component: echarts, name: 'echarts' }
    //     ]
    // }

];

export default routes;
